package cc.catface.smsdemo;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface SmsMapper {

    //新增或更新手机号和验证码
    void saveCode(String phoneid, String code, String timestamp);

    //校验手机号验证码和时间戳
    //int checkCode(String phoneid, String code, Long timestamp);

    //获取手机号对应的具体信息
    SmsDto getPhoneInfo(String phoneid);
}
